Solution:
def count_str(items): total = 0 for item in items: if isinstance(item, str): total += 1 return total